package com.yuan.common.inputcheck;

/**
 * 输入检查
 * 
 * @author Beni
 * 
 */
public class InputCheck {

	/**
	 * 检查输入邮件是否合格
	 * 
	 * @param mail
	 * @return
	 */
	public static boolean checkMail(String mail) {
		try {
			String reg = "\\w+[\\w]*@[\\w]+\\.[\\w]+$";
			if (mail.matches(reg)) {
				return true;
			} else {
				return false;
			}
		} catch (Exception ex) {
			return false;
		}
	}
}
